 |
 |
 |
 |
#136697 - 06/26/01 10:16 PM
Re: [6.x] album.pl 6.0: Uploadable Photo Gallery for UBB
|
Member
Registered: 04/30/01
Posts: 230
Loc: Ottawa, ON, Canada
|
Yep, caught me again. The check was too simplistic. I've updated it once again, this time it should catch the problem. While I was at it, I also closed off another couple of potential holes, where users might have been able to use special shell characters (such as | or >) to do funny stuff. I didn't bother making this a new version, so if you re-download 3.3, you'll get this fix. As for omegatron's comment about the security hole being fixable by good permissions, I'd rather have the script do the right thing, as opposed to making the user worry about yet another problem.  Anyway, thanks for pointing out the hole, and keep the feedback coming! (Yeah, even the negative stuff :)) <FONT COLOR="#000000" SIZE="1">[ June 26, 2001 10:17 PM: Message edited by: bobbitt ]</font>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#136703 - 06/27/01 05:51 AM
Re: [6.x] album.pl 6.0: Uploadable Photo Gallery for UBB
|
Member
Registered: 04/30/01
Posts: 230
Loc: Ottawa, ON, Canada
|
Jonny, You sure can. There's an item in the config file called "imgexts" which is supposed to list the image extensions (jpg, bmp, gif, etc). If you put map in there, it'll allow people to upload only .map files. Now the catch is that it'll try to "img src" them to display them in a browser, so if that doesn't work for a .map file (which I doubt) then you'd have to change a bit of code. I'm not sure how you'd want to deal with a .map file, probably just download it with a "href" maybe? At any rate, it's possible, though it would require a bit of customization. BTW, that's a pretty cool gallery you've got there. Might just put me out of business...  omegatron, Yeah, I agree. If you have everything above your web root as unreadable to your web server process (which is good design) then it's not a problem. But I'd still rather put the "safety features" into the script. It's bloody hard enough to configure as it is!  <FONT COLOR="#000000" SIZE="1">[ June 27, 2001 05:54 AM: Message edited by: bobbitt ]</font>
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#136712 - 06/29/01 05:55 AM
Re: [6.x] album.pl 6.0: Uploadable Photo Gallery for UBB
|
Member
Registered: 04/30/01
Posts: 230
Loc: Ottawa, ON, Canada
|
I run the script on Windows and UNIX just fine. A few people are seeing this, so I'd love to nail it down.
I have a couple of theories, the most likely of which is that the .cfg and/or .pl files weren't FTP'd in ASCII mode. That would cause some problems, and would likely show itself as a 500 error.
Alternatively, my suspicion is that the .cfg file has been edited by an editor that leaves funny characters.
At any rate, if you have shell access, and can run "perl album.pl" in your cgi-bin directory, that'll give us a more clear error code to work with. Hopefully then I can wrap this up for everyone who's dealing with it.
Thanks!
<FONT COLOR="#000000" SIZE="1">[ June 29, 2001 06:04 AM: Message edited by: Mike Bobbitt ]</font>
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|